package org.example.microservice.basedata.controller;

import org.example.microservice.sys.api.feign.SystemFeign;
import org.example.microservice.sys.api.vo.System;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/system")
public class SystemController {

    @Resource
    private SystemFeign systemFeign;

    @GetMapping("/info")
    @ResponseBody
    public System getSystemInfo() {
        return systemFeign.getSystemInfo();
    }
}
